<div id="dock">
  <div class="main-wrap">
    <empty name="self">
    <a id="dock_login" href = "{:U('/account/login')}" class = "navtopy">登录</a>
    | <a id="dock_alert" href="{:U('/alert/')}" class="navtopy">系统消息</a>
    | <a id="dock_register" href = "{:U('/account/register')}" class = "navtopy">注册</a>
    <else />
    <a id="dock_account" href="{:NoticeUrl::getAccount($self)}">{$self.name}</a>
    | <a id="dock_setting" href="{:U('Home-account/')}" class="navtopy">设置</a>
    <!--| <a id="dock_pm" href="{:U('Home-pm/')}" class="navtopy">短信</a>  TODO-->
    | <a id="dock_alert" href="{:U('/alert/')}" class="navtopy">系统消息</a>
    | <a id="dock_logout" href="{:U('/account/logout')}" class="navtopy">注销</a>
    </empty>
  </div>
  <script type="text/javascript">
    $(document).ready(function(){
      NoticeDock.get({
        uid:  "{$self.uid}",
        username: "{$self.name}"
      });
    });
  </script>
</div>